package com.lzx.shop.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.lzx.shop.dataobject.PaymentRecordDO;
import com.lzx.shop.params.PaymentParam;
import com.lzx.shop.params.PaymentRecordQueryParam;

import java.util.List;

/**
 * @InterfaceName PaymentRecordService
 * @Author 刘正星
 * @Date 2021/3/27 上午10:56
 * @Description
 */
public interface PaymentRecordService {

    /**
     * 添加或修改支付记录
     * @param paymentRecord
     * @return
     */
    PaymentRecordDO save(PaymentRecordDO paymentRecord);

    /**
     * 查询支付记录
     * @param queryParam
     * @return
     */
    List<PaymentRecordDO> query(PaymentRecordQueryParam queryParam);

    /**
     * 更新支付记录状态
     * @param paymentRecord
     * @return
     */
    PaymentRecordDO updateStatus(PaymentRecordDO paymentRecord);

    List<PaymentRecordDO> findAll();

    IPage<PaymentRecordDO> page(Page<PaymentRecordDO> page, PaymentParam param);
 }
